import request from '@/utils/request'


// 查询订单列表
export function listSales(query) {
	return request({
		url: '/system/app/sales/list',
		method: 'GET',
		params: query
	})
}


// 根据id查询明细
export function getSalesById(id) {
	return request({
		url: '/system/app/' + id,
		method: 'get'
	})
}

//销售出库
export function salesOrder(data) {
	return request({
		url: '/system/app/updateSalesOrder',
		method: 'post',
		data: data
	})
}

// 新增销售记录
export function addRecords(data) {
  return request({
    url: '/system/app',
    method: 'post',
    data: data
  })
}